/*
 * Copyright (C) 2018 Logos Technology Ltd.
 */

package com.logos.common.base.operation;

import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.DrawableRes;

/**
 * @author Young Ken.
 */
public interface ITitleOperation {

    /**
     * ITitleLeftClick
     */
    interface ITitleLeftClick {

        void titleLeftClick();
    }

    /**
     * IRightLayoutClick
     */
    interface IRightLayoutClick {

        void rightLayoutClick();
    }

    /**
     * setLeftImageClick
     *
     * @param click click
     */
    void setLeftImageClick(ITitleLeftClick click);

    /**
     * setRightLayoutClick
     *
     * @param click click
     */
    void setRightLayoutClick(IRightLayoutClick click);

    /**
     * setTitleName
     *
     * @param titleName titleName
     */
    void setTitleName(String titleName);

    /**
     * addRightImage
     *
     * @param resId resId
     */
    void addRightImage(@DrawableRes int resId);

    /**
     * addRightText
     *
     * @param rightTextName rightTextName
     */
    void addRightText(String rightTextName);

    /**
     * addParent
     *
     * @param viewGroup viewGroup
     */
    void addParent(ViewGroup viewGroup);

    /**
     * getRightImage
     *
     * @return ImageView
     */
    ImageView getRightImage();

    /**
     * getRightText
     *
     * @return TextView
     */
    TextView getRightText();
}
